﻿#region Copyright
/* Product of DTL Software
 * Product Name : Support Memmory
 * Author : dinhtienlam.spkt@gmail.com
 * About: Developer of DTL Software
 * Contact : 0966 330 237
 */
#endregion

#region Using Default
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Design; 
#endregion

namespace Lamdt.Controls
{
    [Designer(typeof(ControlDesigner))]
    public partial class LamdtButtonSetting : Button
    {
        public LamdtButtonSetting()
        {
            InitializeComponent();
            CustomButton();
        }
        private void CustomButton()
        {
            this.FlatAppearance.BorderSize = 0;
            this.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
            this.Size = new System.Drawing.Size(21, 21);
            this.Text = string.Empty;
        }

        protected override void OnTextChanged(EventArgs e)
        {
            base.OnTextChanged(e);
            if (!string.IsNullOrEmpty(this.Text))
                this.Text = string.Empty;
        }
    }
}
